package org.zxp.designpattern.strategy;

/**
 * @program: effectiveJava
 * @description:
 * @author: X-Pacific zhang
 * @create: 2019-08-23 12:05
 **/
public class Calculator {
    Calculate calculate;
    public Calculator(Calculate calculate){
        this.calculate = calculate;
    }
    public int calc(int a,int b){
        return calculate.excute(a,b);
    }
}
